package com.litianyi.blog.controller;

import com.litianyi.blog.entity.Labels;
import com.litianyi.blog.service.LabelsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Labels)表控制层
 *
 * @author makejava
 * @since 2020-05-13 21:39:20
 */
@RestController
@RequestMapping("labels")
public class LabelsController {
    /**
     * 服务对象
     */
    @Resource
    private LabelsService labelsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Labels selectOne(Long id) {
        return this.labelsService.queryById(id);
    }

}